package com.gosling.cloudspace.mapper;

import com.gosling.cloudspace.common.entity.pojo.OrderInfoPO;
import com.gosling.cloudspace.config.mybatis.BaseMapperX;
import com.gosling.cloudspace.config.mybatis.LambdaQueryWrapperX;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderInfoMapper extends BaseMapperX<OrderInfoPO> {

    default OrderInfoPO byOrderNo(String orderNo) {
        LambdaQueryWrapperX<OrderInfoPO> wrapper = new LambdaQueryWrapperX<>();
        wrapper.eq(OrderInfoPO::getOrderNo, orderNo);
        return selectOneX(wrapper);
    }

}
